package com.meituan.sdk.model.ddzh.common.transferOpenUserIdToOpUserId;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 原北极星openUserId转合作中心opUserId
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/transfer/openUserIdToOpUserId",
    businessId = 58,
    apiVersion = "10000",
    apiName = "transfer_open_user_id_to_op_user_id",
    needAuth = false
)
public class TransferOpenUserIdToOpUserIdRequest implements MeituanRequest<TransferOpenUserIdToOpUserIdResponse> {
    /**
    * <p data-diff-id="ct-diff-id-0ca6ea16-2e3a-4e9e-9e51-b802a549e7f3">原北极星用户id</p>
    */
    @NotBlank(message = "openUserId不能为空")
    @SerializedName("openUserId")
    private String openUserId;
    /**
    * <p data-diff-id="ct-diff-id-64086f3a-e78a-4ab5-ba28-7072849d1a49">原北极星的AppKey</p>
    */
    @NotBlank(message = "appKey不能为空")
    @SerializedName("appKey")
    private String appKey;

    public String getOpenUserId() {
        return openUserId;
    }
    public void setOpenUserId(String openUserId) {
        this.openUserId = openUserId;
    }
    public String getAppKey() {
        return appKey;
    }
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }


    @Override
    public MeituanResponse<TransferOpenUserIdToOpUserIdResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TransferOpenUserIdToOpUserIdResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TransferOpenUserIdToOpUserIdRequest{" + "openUserId=" + openUserId + "," + "appKey=" + appKey + "}";
    }
}
